package org.jetlinks.demo.protocol.siterwell.tcp.message;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 网关上电,网关设备连接上电源
 * 设备网关发往平台的数据
 */
@Getter
@Setter
@NoArgsConstructor
public class D2SPowerOn extends AbstractCommandRequest {


    public static D2SPowerOn of(byte[] data) {
        D2SPowerOn message = new D2SPowerOn();
        message.fromBytes(data, 0);
        return message;
    }


    @Override
    protected void parseData() {
    }


    @Override
    public String toString() {
        return "{ device power on : " +
                "gateWayId =" + this.getGateWayId() +
                '}';
    }
}
